package com.itheima.job;

import lombok.Data;

@Data
public class Clerk extends Employee{
    private Manager manager;

    public Clerk() {
    }

    public Clerk(String name, String workId, String dept, Manager manager) {
        super(name, workId, dept);
        this.manager = manager;
    }

    @Override
    void showMsg() {
        System.out.println("职员：工号为 "+ getWorkId()+"，名字为 "+
                getName()+"，部门为 "+getDept()+"，他的经理名字是 "+manager.getName());
    }
}
